<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>

    </div>
</body>

<script>
    //  Array.prototype.a = 12;

    //  var arr = new Array(1,2,3)

    //  console.log(arr)

    //  var obj = {
    //      name: '校长',
    //      objAge: this.age,
    //      myFun: function(fm, t) {
    //         console.log(this.name, this.age + fm, t)
    //      }
    //  }

    //  var db = {
    //      name: 'xxx',
    //      age: '18'
    //  }

    //  obj.myFun.call(db, 'xx', '11')

    function Product(name, price) {
        this.name = name
        this.price = price
    }

    function Food(name, price) {
        
        Product.call(this, name, price)
        this.category = 'food'
    }

    console.log(new Food('xlxlxl', 5))
</script>
</html>
